#include<iostream>
#include<string>
#include<vector>
using namespace std;

int main()
{
	vector<int> Scores = {100,80,68,78,59,77,65};
	
	//Method 1
	for(int A:Scores)
		cout << A << " ";
	cout << endl;
	for(int A:Scores)
	{
		string finalgrade =  (A>90)?"high pass":(A>75)?"pass":(A>60)?"low pass":"fail";
		cout << finalgrade << " ";
	}
	cout << endl;
	
	//Method 2
	for(int A:Scores)
	{
		string finalgrade_2;
		if(A>90)
			finalgrade_2 = "high pass";
		else
			if(A>75)
				finalgrade_2 = "pass";
			else
				if(A>60)
					finalgrade_2 = "low pass";
				else
					finalgrade_2 = "fail";
		cout << finalgrade_2 << " ";
			
	}
	cout << endl;
	
	return 0;

}
